package com.softaria.spkiller.layers.classificator.impl;

import java.io.IOException;

import com.softaria.spkiller.metadata.ClassMetaData;

public class AnnotationExistsPredicate implements ClassificationPredicate{

	private String annotationName;
	
	
	public AnnotationExistsPredicate(String annotationName) {
		super();
		this.annotationName = annotationName;
	}


	@Override
	public boolean matches(ClassMetaData metaData, ClassProbe classProbe)
			throws IOException {
		return classProbe.annotatedWith(metaData, annotationName);
	}





}
